﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Text;
using System.Threading.Tasks;
using ConsoleApp.ReportsServiceReference;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            //Could not establish trust relationship for the SSL/TLS secure channel with authority 'hictbiapwv008:9443'.
            ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });

            using (var proxy = new ReportsServiceClient())
            {
                
                Console.WriteLine(proxy.RetrieveEnvironment());
                var reports = proxy.RetrieveListOfAllReports();
                foreach (var report in reports)
                {
                    Console.WriteLine(report.Name);
                }
                Console.WriteLine(proxy.RetrieveCallingUser());
            }
            Console.ReadKey();
        }

       
    }

   
}
